package com.zzw.java;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@Slf4j
public class BackEndApplication {

    public static void main(String[] args) {
        log.info("BackEndApplication start...");
        log.info("开始获取环境变量......");
        log.info("MQTT_HOST_URL: {}", System.getenv("MQTT_HOST_URL"));
        log.info("MQTT_USERNAME: {}", System.getenv("MQTT_USERNAME"));
        log.info("MQTT_PASSWORD: {}", System.getenv("MQTT_PASSWORD"));
        log.info("CLIENT_ID: {}", System.getenv("CLIENT_ID"));
        log.info("DTU_URL: {}", System.getenv("DTU_URL"));
        SpringApplication.run(BackEndApplication.class, args);
    }

}
